﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
    Inherits="System.Web.Mvc.ViewPage<PagedList<zeus.Core.Test>>" %>

<%@ Import Namespace="Webdiyer.WebControls.Mvc" %>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
    <link href="<%= ResolveUrl("~") %>Content/tables.css" rel="stylesheet" type="text/css" />
    <link href="<%= ResolveUrl("~") %>Content/nyroModal.css" rel="stylesheet" type="text/css" />    
    <script type="text/javascript" src="<%= ResolveUrl("~") %>Scripts/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="<%= ResolveUrl("~") %>Scripts/jquery.form.js"></script>
    <script type="text/javascript" src="<%= ResolveUrl("~") %>Scripts/jquery.nyroModal-1.6.2.pack.js"></script>
    <script type="text/javascript" src="<%= ResolveUrl("~") %>Scripts/jquery.validate.js"></script>
    <script type="text/javascript" src="<%= ResolveUrl("~") %>Scripts/MicrosoftMvcJQueryValidation.js"></script>    
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <h2>
        ListaMejorada</h2>

    <p><a href="/Test/CreateTest" class="nyroModal">Nuevo</a>
    
    </p>

    <table class="datatable">
        <caption>
            Listado Test</caption>
        <thead>
            <tr>
                <th>
                    Nombre
                </th>
                <th>
                    Direccion
                </th>
                <th>
                    Telefono
                </th>
                <th>
                    Id
                </th>
            </tr>
        </thead>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%= Html.Encode(item.Nombre) %>
            </td>
            <td>
                <%= Html.Encode(item.Direccion) %>
            </td>
            <td>
                <%= Html.Encode(item.Telefono) %>
            </td>
            <td>
                <a href="CreateTest" class="nyroModal"><%= Html.Encode(item.Id) %></a>
            </td>
        </tr>
        <% } %>
    </table>
    <p>
        <%= Html.Pager(Model,new PagerOptions{PageIndexParameterName="id"}) %>
    </p>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
</asp:Content>
